package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.dto.OrdersDto;
import com.itheima.reggie.entity.Orders;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

public interface OrdersService {
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    void addOrder(Orders orders);

    Page<OrdersDto> orderPage(Long userId, int page, int pageSize);

    Page<OrdersDto> orderPage(int page, int pageSize, String number, String beginTime, String endTime);

    void updateStatus(Orders orders);
}
